﻿$searchapp = Get-SPEnterpriseSearchServiceApplication  -Id "5917f82a-6508-474a-9f6c-4929e1ad110a"

New-SPEnterpriseSearchCrawlCustomConnector -SearchApplication $searchapp -protocol "msews" -ModelFilePath "C:\Projects\MsExchangeBcsConnector\ExchangeBdcModel\ExchangeBdcModel.bdcm" -Name "MsExchange" 